package com.bear.newsset.holder;

import androidx.annotation.NonNull;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.bear.newsset.R;
import com.bear.newsset.adapter.BaseViewHolder;
import com.bear.newsset.widget.item.NewsItemThreeImgView;

public class NewsThreeImgHolder extends BaseViewHolder {
    private TextView title;
    private ImageView img_1;
    private ImageView img_2;
    private ImageView img_3;
    private TextView posterScreenName;  //网站名称
    public NewsThreeImgHolder(@NonNull View itemView) {
        super(itemView);
//        NewsItemThreeImgView v = (NewsItemThreeImgView) itemView;
        NewsItemThreeImgView v = itemView.findViewById(
                NewsItemThreeImgView.NEWS_ITEM_THREE_IMG_VIEW_ID
        );
        title = v.getTitleView();
        img_1 = v.getImgLeftView();
        img_2 = v.getImgConterView();
        img_3 = v.getImgRightView();
        posterScreenName = v.getPosterScreenNameView();
    }

    public TextView getTitle() {
        return title;
    }

    public ImageView getImg_1() {
        return img_1;
    }

    public ImageView getImg_2() {
        return img_2;
    }

    public ImageView getImg_3() {
        return img_3;
    }

    public TextView getPosterScreenName() {
        return posterScreenName;
    }
}
